﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common.Factory;
using Common.Model;

namespace school.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Menu()
        {
            List<Cd_Menu> list = Factory<Cd_Menu>.Repository().GetAll("");
            return PartialView("_Menu",list);
        }
    }
}
